package com.zbkj.admin.model.req;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbkj.dal.pojo.request.PageParamRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel
public class AdminQuotaListReq extends PageParamRequest {

    @ApiModelProperty(value = "额度调整单号", example = "hk1sd22fhk232jhs545df")
    private String quotaNo;

    @ApiModelProperty(value = "来源单号", example = "HF125171056341235449947")
    private String bizOrderNo;

    @ApiModelProperty(value = "用户id", example = "99")
    private Integer userId;

    @ApiModelProperty(value = "用户昵称", example = "张三")
    private String nickName;

    @ApiModelProperty(value = "调额类型", example = "QUOTA_RECHARGE")
    private String changeType;

    @ApiModelProperty(value = "状态", example = "EFFICACY")
    private String status;

    @ApiModelProperty(value = "开始日期", example = "2024-03-28")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate beginDate;

    @ApiModelProperty(value = "结束日期", example = "2024-03-28")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate endDate;

}
